import request from "../utils/request";

const seller = {
  releaseGood(data) {
    return request.post("/seller/releaseGood", data);
  },
  modifyGoodsInfo(params) {
    return request.post("/seller/modifyGoodsInfo", null, {params: params});
  },
  login(params) {
    return request.post("/seller/login", null, {params: params});
  },
  goodsSold(params) {
    return request.put("/seller/goodsSold", null, {params: params});
  },
  goodsOffShelf(params) {
    return request.put("/seller/goodsOffShelf", null, {params: params});
  },
  goodBackOnline(data) {
    return request.post("/seller/goodBackOnline", data);
  },
  freezeGood(params) {
    return request.post("/seller/freezeGood", null, {params: params});
  },
  changeFrozenStateOfGoods(params) {
    return request.post("/seller/changeFrozenStateOfGoods", null, {params: params});
  },
  changePwd(params, data) {
    return request.put("/seller/changePwd", data, {params: params});
  },
}

export default seller;
